function modulesSubmit(method, name) {
    
    $.ajax({
        dataType: 'json',
        type: 'post',
        data: 'theme_control=true',
        url:  '/Modules/'+ method +'/'+ name,
        success: function(data) {
	    if(checkStatus(data)) {
		menu_display();
                acLoadOptions();
                acLoadPage();
                
		if (data && data.message)
		    alert(data.message);
	    }
	},
    });
}